xs: make sure mutexes are cleaned up and memory freed if the read thread is cancelled
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 12 May 2010 07:48:14 +0000 (08:48 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 12 May 2010 07:48:14 +0000 (08:48 +0100)
commit20a817b0a72cbc330d1278552aa8d328940d1e7c
tree0c0e7c2a3fa8a717a7bb5664b965ee13dee367ae
parentd92e69a17a36b1d6d4c4f3f77f64a9957666badf
xs: make sure mutexes are cleaned up and memory freed if the read thread is cancelled

If the read thread is terminated with pthread cancel, it must make
sure all memory is freed and mutexes are unlocked.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
tools/xenstore/xs.c